package com.tree.shardingjdbc.demo.service;

import com.tree.shardingjdbc.demo.entity.UserEntity;

import java.util.List;

/**
 * @ClassName com.tree.shardingjdbc.demo.service
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-06-02 23:56
 * @Version 1.0
 */
public interface UserService {
    /**
     * 保存 user 对象
     *
     * @param user
     */
    UserEntity saveUser(UserEntity user);

    /**
     * 获取所有 user 对象
     *
     * @return
     */
    List<UserEntity> getUsers();
}
